package com.fangqiang.sprint_boot_web1.mysql;

import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServer {

    @Autowired
    private UserMapper userMapper;

    @PostConstruct
    public void init(){
        User user = userMapper.selectUserById(1);
        System.out.println(user);
    }
}
